from .model_base import *


class DataTag(BaseTable):
    # __database__ = "db1"
    tag_id = fields.IntField(pk=True, description="属性ID")
    tag_name = fields.CharField(max_length=255, description="属性名称")
    tag_desc = fields.CharField(max_length=255, description="详细描述")
    tag_type = fields.IntField(description="属性分类")
    tag_data_type = fields.IntField(description="属性数据类型")
    tag_data_dict = fields.JSONField(description="属性数据字典")

    class Meta:
        table = 'data_tag'  # 数据库中的表名称
        table_description = '属性管理表'
